package io.bsly.modules.app.entity.localEntity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 
 * 
 * @author fys
 * @email demo@gmail.com
 * @date 2021-09-27 10:00:13
 */
@ApiModel
@Data
@TableName("dy_hotel_product")
public class DyHotelProductEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 
	 */
	@NotNull(message = "hotelId 不能为空")
	private Integer hotelId;
	/**
	 * 
	 */
	@NotNull(message = "productId 不能为空")
	private Integer productId;

	@NotNull(message = "productName 不能为空")
	private String productName;

	/**
	 *  酒店名称
	 */
	@NotBlank(message = "name 不能为空")
	private String name;
	/**
	 *
	 */
	private String phone;
	/**
	 *
	 */
	@NotBlank(message = "province 不能为空")
	private String province;

	/**
	 *
	 */
	@NotBlank(message = "city 不能为空")
	private String city;

	/**
	 *
	 */
	private String longitude;

	/**
	 *
	 */
	private String latitude;

	/**
	 *
	 */
	private Integer star;

	/**
	 *
	 */
	@NotBlank(message = "address 不能为空")
	private String address;

	/**
	 * 
	 */
	private Date createTime;

	//关联是否失效  1正常  0失效
	private Integer status;
}
